﻿using System.ComponentModel;

namespace ThresholdAssistant.WebAPI.Models
{
    /// <summary>
    /// 错误信息枚举
    /// </summary>
    public enum ErrorResultEnum
    {
        /// <summary>
        /// 业务处理失败
        /// </summary>
        [Description("业务处理失败")]
        BusinessFailed = -1,

        /// <summary>
        ///  成功
        /// </summary>
        [Description("SUCCESS")]
        SUCCESS = 1,

        /// <summary>
        /// token无效
        /// </summary>
        [Description("token无效")]
        InvalidToken = 100000,

        /// <summary>
        /// 参数错误
        /// </summary>
        [Description("参数错误")]
        ParamError = 100001,

        /// <summary>
        /// 请求API失败
        /// </summary>
        [Description("请求API失败")]
        RequestApiFail = 100002,

        /// <summary>
        /// 用户违规不可用
        /// </summary>
        [Description("用户违规不可用")]
        UserViolation = 100003,

        /// <summary>
        /// 用户不存在
        /// </summary>
        [Description("用户不存在")]
        UserNotExists = 100004,

        /// <summary>
        /// 手机号错误
        /// </summary>
        [Description("手机号错误")]
        LoginPhpneErr = 100005,

        /// <summary>
        /// token失效
        /// </summary>
        [Description("token失效")]
        TokenExpired = 100006,

        /// <summary>
        /// group_id不能为空
        /// </summary>
        [Description("group_id不能为空")]
        GroupIdIsNull = 100007,

        /// <summary>
        /// 名称不能为空
        /// </summary>
        [Description("名称不能为空")]
        NameIsNull = 100008,

        /// <summary>
        /// ID不能为空
        /// </summary>
        [Description("ID不能为空")]
        IdIsNull = 100009,

        /// <summary>
        /// 标签类型id不能为空
        /// </summary>
        [Description("标签类型id不能为空")]
        TagtypeIdIsNull = 100009,

        /// <summary>
        /// 用户不能为空
        /// </summary>
        [Description("用户不能为空")]
        MemberIdIsNull = 100010,

        /// <summary>
        /// 标签类型名称不能为空
        /// </summary>
        [Description("标签类型名称不能为空")]
        ThresholdTypeIsNull = 100011,

        /// <summary>
        /// 开始值不能为空
        /// </summary>
        [Description("开始值不能为空")]
        StartValueIsNull = 100012,

        /// <summary>
        /// 结束值不能为空
        /// </summary>
        [Description("结束值不能为空")]
        EndValueIsNull = 100013,

        /// <summary>
        /// jscode不能为空
        /// </summary>
        [Description("jscode不能为空")]
        JsCodeIsNull = 100014,

        /// <summary>
        /// 成员openid为空
        /// </summary>
        [Description("成员openid为空")]
        WxOpenIdIsNull = 100015,

        /// <summary>
        /// 记录不存在
        /// </summary>
        [Description("记录不存在")]
        RecordIsNotExists = 100016,

        /// <summary>
        /// 已经是群主
        /// </summary>
        [Description("已经是群主")]
        IsMaster = 100017,

        /// <summary>
        /// 已入其他群
        /// </summary>
        [Description("已入其他群")]
        JoinOtherGroup = 100018,

        /// <summary>
        /// 群已满员
        /// </summary>
        [Description("群已满员")]
        GroupFullMember = 100019,

        /// <summary>
        /// 不在群内
        /// </summary>
        [Description("不在群内")]
        NotInGroup = 100020,

        /// <summary>
        /// 群主id不能为空
        /// </summary>
        [Description("群主id不能为空")]
        MasterIdIsNull = 100021,

        /// <summary>
        /// 不是群主
        /// </summary>
        [Description("不是群主")]
        NotGroupMaster = 100022,

        /// <summary>
        /// 手机号不能为空
        /// </summary>
        [Description("手机号不能为空")]
        PhoneIsNull = 100023,

        /// <summary>
        /// 参数值不能为空
        /// </summary>
        [Description("参数值不能为空")]
        ConfigValueIsNull = 100024,

        /// <summary>
        /// 数据组Id不能为空
        /// </summary>
        [Description("数据组Id不能为空")]
        SiteIdIsNull = 100025,

        /// <summary>
        /// 标签Id不能为空
        /// </summary>
        [Description("标签Id不能为空")]
        TagIdIsNull = 100026,

        /// <summary>
        /// 数据值不能为空
        /// </summary>
        [Description("数据值不能为空")]
        DataValueIsNull = 100027,

        /// <summary>
        /// 邀请码不能为空
        /// </summary>
        [Description("邀请码不能为空")]
        InviteCodeIsNull = 100028,

        /// <summary>
        /// 邀请码无效
        /// </summary>
        [Description("邀请码无效")]
        InviteCodeInvalid = 100029,

        /// <summary>
        /// 参数校验异常
        /// </summary>
        [Description("参数校验异常")]
        InvalidParam = 100030,

        /// <summary>
        /// 短信列表不能为空
        /// </summary>
        [Description("短信列表不能为空")]
        SmsListIsNull = 100031,

        /// <summary>
        /// 短信数量不能低于0
        /// </summary>
        [Description("短信数量不能低于0")]
        SmsListLessThan0 = 100032,

        /// <summary>
        /// 短信数量不能高于500
        /// </summary>
        [Description("短信数量不能高于500")]
        SmsListMoreThan500 = 100033,

        /// <summary>
        /// 标题不能为空
        /// </summary>
        [Description("标题不能为空")]
        TitleIsNull = 100034,

        /// <summary>
        /// 日期不能为空
        /// </summary>
        [Description("日期不能为空")]
        DateTimeIsNull = 100035,
    }
}